package com.diandian.backend.client.mapper;

import com.diandian.backend.client.domain.ClientSetting;
import com.diandian.backend.client.dto.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClientSettingMapper {

    // 查询数据集合
    List<ClientSetting> getList(@Param("clientId") String clientId, @Param("type") String type);

    List<ClientSetting> getByBelong(@Param("belong") String belong, @Param("type") String type);

    // 查询记录数
    Integer getCount(@Param("data") ClientSettingPageParamDTO requestDTO);

    // 查询分页中的数据集合
    List<ClientSetting> getPage(@Param("data") ClientSettingPageParamDTO requestDTO, @Param("pageSize") Integer pageSize, @Param("offset") Integer offset);

    // 获取所有的belong
    List<String> getAllBelong();
}